/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tin.main;

/*import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;*/
public class RestRunner {

    public static void main(String[] args) {
        /*try {
            Client client = Client.create();
            WebResource webResource = client
                    .resource("http://localhost:8080/RestDemo/rest/hello/post");
            String input = "{\"name\":\"tin\"}";
            ClientResponse response = webResource.type("application/vnd.com.tin.rest+json")
                    .post(ClientResponse.class, input);
            if (response.getStatus() != 201) {
                throw new RuntimeException("Failed : HTTP error code : "
                        + response.getStatus());
            }
            System.out.println("Output from Server .... \n");
            String output = response.getEntity(String.class);
            System.out.println(output);
        } catch (Exception e) {
            e.printStackTrace();
        }*/
    }
}
